//---------------------------------------------------------------------------

#ifndef Fr_AdresH
#define Fr_AdresH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <ComCtrls.hpp>
#include <Mask.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TFrame_Adres : public TFrame
{
__published:	// IDE-managed Components
	TGroupBox *gbAdres;
	TGroupBox *gbNAS_PUNKT;
	TDBLookupComboBox *cbNAS_PUNKT;
	TLabel *Label1;
	TLabel *Label2;
	TDBLookupComboBox *cbVU;
	TDBLookupComboBox *cbUL;
	TGroupBox *gbDom;
	TDBEdit *dbeDOM;
	TDBEdit *dbeBUKVA_D;
	TDBEdit *dbeKORPUS;
	TLabel *Label3;
	TGroupBox *gbKv;
	TDBEdit *dbeKV;
	TDBEdit *dbeBUKVA_KV;
	TIBCDataSource *dsNAS_PUNKT;
	TIBCDataSource *dsVU;
	TIBCDataSource *dsUL;
	TIBCQuery *dsetNAS_PUNKT;
	TIBCQuery *dsetVU;
	TIBCQuery *dsetUL;
	void __fastcall cbNAS_PUNKTClick(TObject *Sender);
	void __fastcall cbVUClick(TObject *Sender);
	void __fastcall dbeDOMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeBUKVA_DKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeKORPUSKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeKVKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbULClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TFrame_Adres(TComponent* Owner);
	void __fastcall TFrame_Adres::Prepare();
	void __fastcall TFrame_Adres::VU();
	void __fastcall TFrame_Adres::UL();
};
//---------------------------------------------------------------------------
extern PACKAGE TFrame_Adres *Frame_Adres;
//---------------------------------------------------------------------------
#endif
